package com.advertisementsystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_sessions")
public class ChatSessions implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会话ID
     */

    @TableId(value = "session_id", type = IdType.AUTO)
    private Long sessionId;

    /**
     * 协商ID
     */
    private Long negotiationId;

    /**
     * 广告主ID
     */
    private Long advertiserId;

    /**
     * 设备所有者ID
     */
    private Long deviceOwnerId;

    /**
     * 最后一条消息ID
     */
    private String lastMessageId;

    /**
     * 未读消息数
     */
    private Integer unreadCount;

    /**
     * 会话状态：ACTIVE/CLOSED
     */
    private String status;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;


}
